package day03;

public class OperDemo3 {
    public static void main(String[] args) {
        int a=5,b=10,c=5;
        boolean b1 =b>=a && b<c;
        System.out.println(b1);
        System.out.println(b<=c && b>a);
        System.out.println(a==b && c>b);
        System.out.println(b!=c && a<b);
        boolean b2 =!(a>b);// !取反
        System.out.println(b2);
//&& 两边为真为真，见false则false 当条件为false时，后面不执行
        boolean b3 =a>b && c++>2;
        System.out.println(b3);
        System.out.println(c); //5 因为前面false所以后面不执行
        boolean b4 =a<b || c++>2;
        System.out.println(b4);
        System.out.println(c); //5 因为前面true所以后面不执行
    }
}
